import { createApp } from 'vue'
import 'element-plus/dist/index.css'
import './assets/scss/base.scss'
import ElementPlus from 'element-plus'
// import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import router from './router'
import App from './App.vue'
import { createPinia } from 'pinia'
// import request from '@/apis/http'
const pinia = createPinia()
const app = createApp(App)
// 命名并设置全局变量51

// Vue.component('vuedraggable', window.vuedraggable)
// Vue.config.productionTip = false
// for (let item in request) {
//     if (item.indexOf('get') >= 0 || item.indexOf('post') >= 0 || item.indexOf('upload') >= 0 || item.indexOf('put') >= 0 || item.indexOf('delete') >= 0 || item.indexOf('blobDownload') >= 0) {
//         app.config.globalProperties[`$${item}`] = request[item]
//     }
// }
// console.log('request',app)
app.use(router).use(ElementPlus).use(pinia).mount('#app')